﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Backstage.UserData
{
    /// <summary>
    /// BS_UserRebate
    /// </summary>
    [Table("BS_UserRebate")]
    public class BS_UserRebate
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 否已删除
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// Note
        /// </summary>
        public String Note { get; set; }

        /// <summary>
        /// 收益人Id
        /// </summary>
        public String SUserId { get; set; }

        /// <summary>
        /// 消费者Id
        /// </summary>
        public String XFUserId { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public String OrderId { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        public String GoodsId { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public String GoodsName { get; set; }

        /// <summary>
        /// 商品规格名称
        /// </summary>
        public String GoodsItemName { get; set; }

        /// <summary>
        /// 商品单价
        /// </summary>
        public decimal GoodsPrice { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int? GoodsNum { get; set; }

        /// <summary>
        /// 商品价格
        /// </summary>
        public Decimal OrderMoney { get; set; }

        /// <summary>
        /// 返利比例
        /// </summary>
        public Int32 ReturnDiscount { get; set; }

        /// <summary>
        /// 类型（0.返利,1.退款,2.提现）
        /// </summary>
        public Int32 Type { get; set; } = 0;

        /// <summary>
        /// 返利金额
        /// </summary>
        public Decimal ReturnMoney { get; set; }

    }
}